package com.alex.ioc.annotation;

import com.alex.ioc.annotation.controller.CarController;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application2 {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("annotation.xml");

        CarController carController = (CarController) ctx.getBean("carController");
        System.out.println(carController);

        carController.execute();

    }
}
